package cn.cque.service;

import cn.cque.entity.Cart;
import cn.cque.entity.Order;
import cn.cque.entity.User;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: XWC
 * @InterfaceName: OrderService
 * @Date: 2020/10/5
 * @Time: 14:40
 * @Description:
 */
public interface OrderService {
    Order createOrder(User user, Cart cart);

    Integer updateOrder(Order order);

    List<Order> findAllByUid(String uid);

    Order findById(String id);

    List<Order> findAll();

    Integer deleteOrder(String id);
}
